import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

public class Test {

    public static void main(String[] args) {
        Solution solution = new Solution();
        int ret = solution.lengthOfLongestSubstring( "tmmzuxt");
        System.out.println(ret);
    }

    public static void main5(String[] args) {
        Solution solution = new Solution();
        String[] queries = {"bbb","cc"};
        String[] words = {"a","aa","aaa","aaaa"};
        int[] array = solution.numSmallerByFrequency(queries,words);
        System.out.println(Arrays.toString(array));
    }


    public static void main4(String[] args) {
        Solution solution = new Solution();
        String paragraph = "j. t? T. z! R, v, F' x! L; l! W. M; S. y? r! n;" +
                " O. q; I? h; w. t; y; X? y, p. k! k, h, J, r? w! U! V; j' u; " +
                "R! z. s. T' k. P? M' I' j! y. P, T! e; X. w? M! Y, X; G; d, X? " +
                "S' F, K? V, r' v, v, D, w, K! S? Q! N. n. V. v. t? t' x! u. j; " +
                "m; n! F, V' Y! h; c! V, v, X' X' t? n; N' r; x. W' P? W; p' q, " +
                "S' X, J; R. x; z; z! G, U; m. P; o. P! Y; I, I' l' J? h; Q; s? " +
                "U, q, x. J, T! o. z, N, L; u, w! u, S. Y! V; S? y' E! O; p' X, " +
                "w. p' M, h! R; t? K? Y' z? T? w; u. q' R, q, T. R? I. R! t, X, " +
                "s? u; z. u, Y, n' U; m; p? g' P? y' v, o? K? R. Q? I! c, X, " +
                "x. r' u! m' y. t. W; x! K? B. v; m, k; k' x; Z! U! p. U? Q, " +
                "t, u' E' n? S' w. y; W, x? r. p! Y? q, Y. t, Z' V, S. q; W. Z, " +
                "z? x! k, I. n; x? z; V? s! g, U; E' m! Z? y' x? V! t, F. Z? Y' S! " +
                "z, Y' T? x? v? o! l; d; G' L. L, Z? q. w' r? U! E, H. C, Q! O? w! " +
                "s? w' D. R, Y? u. w, N. Z? h. M? o, B, g, Z! t! l, W? z, o? z, q! " +
                "O? u, N; o' o? V; S! z; q! q. o, t! q! w! Z? Z? w, F? O' N' U' p? " +
                "r' J' L; S. M; g' V. i, P, v, v, f; W? L, y! i' z; L? w. v, s! P?";
        String[] banned = {"m","q","e","l","c","i","z","j","g","t","w","v","h","p","d","b","a","r","x","n"};
        String ret = solution.mostCommonWord(paragraph,banned);
        System.out.println(ret);
    }

    public static void main3(String[] args) {
        Solution solution = new Solution();
        String paragraph = "Bob hit a ball, the hit BALL flew far after it was hit.";
        String[] banned = {"hit"};
        String ret = solution.mostCommonWord(paragraph,banned);
        System.out.println(ret);

    }

    public static void main2(String[] args) {
        MyHashSet myHashSet = new MyHashSet();
        myHashSet.add(1);      // set = [1]
        myHashSet.add(2);      // set = [1, 2]
        System.out.println(myHashSet.contains(1));
        System.out.println(myHashSet.contains(3));
        myHashSet.add(2);      // set = [1, 2]
        System.out.println(myHashSet.contains(2));
        myHashSet.remove(2);   // set = [1]
        System.out.println(myHashSet.contains(2));
    }

    public static void main1(String[] args) {
        MyHashMap myHashMap = new MyHashMap();
        myHashMap.put(1, 1); // myHashMap 现在为 [[1,1]]
        myHashMap.put(2, 2); // myHashMap 现在为 [[1,1], [2,2]]
        System.out.println(myHashMap.get(1));
        System.out.println(myHashMap.get(3));
        myHashMap.put(2, 1); // myHashMap 现在为 [[1,1], [2,1]]（更新已有的值）
        System.out.println(myHashMap.get(2));
        myHashMap.remove(2); // 删除键为 2 的数据，myHashMap 现在为 [[1,1]]
        System.out.println(myHashMap.get(2));
    }

}
